package top.txl.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.txl.Dto.DishDto;
import top.txl.entity.DishFlavor;
import top.txl.entity.Flavors;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
//    @Select("insert into dish_flavor(dish_id, name, value, create_time, update_time, create_user, update_user) " +
//            "values (#{dishId},#{name},#{value},#{createTime},#{updateTime},#{createUser},#{updateUser})")
    void add(List<DishFlavor> flavors);

    List<Flavors> detail(Integer id);

//    @Select("delete from dish_flavor where dish_id = #{dishId}")
    void deleteFlavors(List<Integer> dishIds);

    List<DishFlavor> getFlavors(Integer id);
}
